<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;
use Watson\Rememberable\Rememberable;

class Activity extends Model
{
    use Rememberable;

    protected $rememberCacheTag = 'activity_cache';

    protected $cache_expire_in_minutes = 1440;
    use HasDateTimeFormatter;
    // use SoftDeletes;

    protected $table = 'activity';

    public function activityInfo()
    {
        return $this->hasOne(ActivityInformation::class, 'act_id', 'id');
    }
}
